import java.util.Scanner;

/**
 * 如果A是个x行y列的矩阵，B是个y行z列的矩阵，把A和B相乘，其结果将是另一个x行z列的矩阵C。这个矩阵的每个元素是由下面的公式决定的
 *
 * 矩阵的大小不超过100*100
 * 对于每组输入数据，输出x行，每行z个整数，代表两个矩阵相乘的结果
 */
public class MatrixMultilPlus {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            int l = scanner.nextInt();
            int m = scanner.nextInt();
            int n = scanner.nextInt();

            int[][] matrix1 = new int[l][m];
            int[][] matrix2 = new int[m][n];

            for (int i = 0; i < l; i++) {
                for (int j = 0; j < m; j++) {
                    matrix1[i][j] = scanner.nextInt();
                }
            }

            for (int i = 0; i < m; i++) {
                for (int j = 0; j <n ; j++) {
                    matrix2[i][j] = scanner.nextInt();
                }
            }

            int[][] matrix3 = new int[l][n];
            for (int i = 0; i < l; i++) {
                for (int j = 0; j < n; j++) {
                    int res = 0;
                    for (int k = 0; k < m; k++) {
                        res+=matrix1[i][k]*matrix2[k][j];
                    }
                    System.out.println(res+" ");
                }
                System.out.println();
            }
        }
    }
}
